@model List<Student>
<div>
    <a asp-action="Add">新增</a>
    
    <form asp-action="Index" method="get">
        <label><input name="KeyWord" placeholder="请输入关键字"></label>
        <input type="submit" value="查询">
    </form>
</div>
<table>
    <thead>
        <tr>
            <th>Id</th>
            <th>姓名</th>
            <th>年龄</th>
            <th>操作</th>
        </tr>
    </thead>
    <tbody>

          @foreach(var item in Model){
        <tr>
               <td>@item.Id</td>
               <td>@item.Name</td>
               <td>@item.Age</td>
               <td>
                  <a asp-action="Delete" asp-route-id="@item.Id">删除</a>
                  <a asp-action="Edit" asp-route-id="@item.Id">编辑</a>
               </td>
           </tr>
          }

    </tbody>
</table>